import {
  C0LUMNS
} from './index.const';
import ElEditable from '@components/el-editable';
export default {
  components: {
    ElEditable
  },
  inject: ['apiMMallWeb'],
  data() {
    return {
      currentPage: 1,
      pageSize: 20,
      tableLoading: false,
      payload: {},
      C0LUMNS
    };
  },
  async created() {
    this.getDetail()
  },
  computed: {
    orderId() {
      return this.$route.query.orderId;
    },
    orderStatus() {
      return this.$route.query.orderStatus;
    },
  },
  methods: {
    async getDetail() {
      this.tableLoading = true
      const query = {
        busModel: 3,
        page: this.currentPage,
        pageSize: this.pageSize,

      };
      const data = await this.apiMMallWeb.OrderDetailListOrderV1ApiPOST({
        query: query
      });
      this.tableLoading = false
      this.payload = data;
    },
  }
};